`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    13:15:53 04/29/2011 
// Design Name: 
// Module Name:    VGAcontrol 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
  module bulletdisplay (enable1, enable2, enable3, enable4, enable5, vgadisp1, vgadisp2, vgadisp3,vgadisp4, vgadisp5, vgadisp6, vgadisp7, vgadisp8, vgadisp9, vgadisp10, hcounter, vcounter,blank);

	
	input enable1, enable2, enable3, enable4, enable5;
	output reg vgadisp1, vgadisp2, vgadisp3,vgadisp4, vgadisp5, vgadisp6, vgadisp7, vgadisp8, vgadisp9, vgadisp10;
	input blank;
	input signed [10:0] hcounter, vcounter;
always@(enable1)	begin
 
	vgadisp1= ~blank &&
	(vcounter>= 235 && vcounter<250 && hcounter>=60 && hcounter< 65) || (vcounter>= 245 && vcounter<250 && hcounter>=55 && hcounter< 70) || (vcounter>= 250 && vcounter< 255 
	&& hcounter>=55 && hcounter<60)||(vcounter>= 250 && vcounter<255 && hcounter>=65 && hcounter< 70);
	
	vgadisp2= ~blank &&
	(vcounter>= 280 && vcounter<285 && hcounter>=85 && hcounter< 100) || (vcounter>= 275 && vcounter<290 && hcounter>=95 && hcounter< 100) || (vcounter>= 275 && vcounter< 280 
	&& hcounter>=100 && hcounter<105)||(vcounter>= 285 && vcounter<290 && hcounter>=100 && hcounter<105);
	
	
	vgadisp3= ~blank &&
	(vcounter>= 310 && vcounter<315 && hcounter>=115 && hcounter< 120) || (vcounter>= 315 && vcounter< 320 && hcounter>=115 && hcounter< 130) || (vcounter>= 310 && vcounter< 315 
	&& hcounter>=125 && hcounter<130)||(vcounter>= 320 && vcounter<330 && hcounter>=120 && hcounter<125);
	
	
	vgadisp4= ~blank &&
	(vcounter>= 340 && vcounter<345 && hcounter>=145 && hcounter< 155) || (vcounter>= 350 && vcounter< 355 && hcounter>=145 && hcounter< 155) || (vcounter>= 345 && vcounter< 350 
	&& hcounter>=150 && hcounter<155)||(vcounter>= 345 && vcounter<350 && hcounter>=155 && hcounter<165);
	
	/*vgadisp5=~blank &&
	( ((vcounter-250) >= ((hcounter-20) + 5)) && (hcounter>=15 && hcounter <20 ) && ( vcounter>=250 && vcounter<255)) && (vcounter>= 150 && vcounter<155 && hcounter>=15 && hcounter< 20))
	  && (vcounter>= 150 && vcounter<155 && hcounter>=15 && hcounter< 20));*/
	
	/*vgadisp6=~blank &&
	( ~((vcounter-150) >= (-(hcounter-15) + 5) ) && (hcounter>=15 && hcounter <20 ) && ( vcounter>=150 && vcounter<155)) && (vcounter>= 150 && vcounter<155 && hcounter>=15 && hcounter< 20));*/
	
	
	/*vgadisp7=~blank &&
		(((vcounter-155) >= (-(hcounter-15) + 5) ) ||  ~((vcounter-155) >= (-(hcounter-20) + 5) ) || ~((vcounter-160) >= ((hcounter-20) + 5) ) || ((vcounter-155) >= ((hcounter-25) + 5) ) || ((vcounter-150) >= (-(hcounter-30) + 5) )  || ((vcounter-150) >= ((hcounter-40) + 5) ) || ((vcounter-155) >= (-(hcounter-35) + 5) ) || ((vcounter-160) >= (-(hcounter-30) + 5) ) ||  ((vcounter-165) >= ((hcounter-35) + 5) ) || ~((vcounter-170) >= (-(hcounter-30) + 5) ) || ~((vcounter-165) >= (-(hcounter-25) + 5) ) || ((vcounter-170) >= (-(hcounter-30) + 5) ) && ((hcounter>=20 && hcounter <25 ) && ( vcounter>=160 && vcounter<165))    
		 && ((hcounter>=25 && hcounter <30 ) && ( vcounter>=160 && vcounter<165)) &&  ((hcounter>=25 && hcounter <30 ) && ( vcounter>=165 && vcounter<170))  &&  ((hcounter>=30 && hcounter <35 ) && ( vcounter>=155 && vcounter<160)) ) ;*/
		 
	/*vgadisp5= ~blank &&
	(vcounter>= Y1 && vcounter<Y1+4 && hcounter>=X1 && hcounter< X1+4) || (vcounter>= Y1+4 && vcounter< Y1+8 && hcounter>=X1+4 && hcounter< X1+8) || (vcounter>= Y1+8 && vcounter< Y1+20 
	&& hcounter>=X1+8 && hcounter<X1+20)||(vcounter>= Y1+12 && vcounter< Y1+16 && hcounter>=X1 && hcounter<X1+8) ||(vcounter>= Y1+12 && vcounter<Y1+16 && hcounter>=X1+20 && hcounter<X1+28) ||(vcounter>= Y1 && vcounter<Y1+8 && hcounter>=X1+12 && hcounter<X1+16) || (vcounter>= Y1+20 && vcounter<Y1+28 && hcounter>=X1+12 && hcounter<X1+16) || (vcounter>= Y1+20 && vcounter<Y1+24 && hcounter>=X1+4 && hcounter<X1+8) || (vcounter>= Y1 && vcounter<Y1+4 && hcounter>=X1+12 && hcounter<X1+28) || (vcounter>= Y1+4 && vcounter<Y1+8 && hcounter>=X1+20 && hcounter<X1+24) || (vcounter>= Y1+20 && vcounter<Y1+24 && hcounter>=X1+20 && hcounter<X1+24) || (vcounter>= Y1+24 && vcounter<Y1+28 && hcounter>=X1+12 && hcounter<X1+28) || (vcounter>= Y1+12 && vcounter<Y1+28 && hcounter>=X1 && hcounter<X1+4);*/
		 
	vgadisp4= ~blank &&
	(vcounter>= Y4+5 && vcounter<Y4+10 && hcounter>=X4 && hcounter< X4+15) || (vcounter>= Y4 && vcounter<Y4+15 && hcounter>=X4+10 && hcounter< X4+15) || (vcounter>= Y4 && vcounter< Y4+5 
	&& hcounter>=X4+15 && hcounter<X4+20)||(vcounter>= Y4+10 && vcounter<Y4+15 && hcounter>=X4+15 && hcounter<X4+20);
	
	vgadisp6= ~blank &&
	(vcounter>= 100 && vcounter<110 && hcounter>=125 && hcounter< 145) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=135 && hcounter<145) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=195 && hcounter<205) || 	(vcounter>= 120 && vcounter<130 && hcounter>=195 && hcounter< 225)
   || (vcounter>= 140 && vcounter<150 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<110 && hcounter>=245 && hcounter<265) || 	(vcounter>= 100 && vcounter<110 && hcounter>=275 && hcounter< 295) || (vcounter>= 110 && vcounter< 140 && hcounter>=255 && hcounter< 265) || (vcounter>= 110 && vcounter< 140 
	&& hcounter>=275 && hcounter< 285) || (vcounter>= 140 && vcounter< 150 && hcounter>=265 && hcounter< 275)|| (vcounter>= 100 && vcounter< 110 
	&& hcounter>=315 && hcounter<355)||(vcounter>= 100 && vcounter<150 && hcounter>=325 && hcounter<335) || (vcounter>= 140 && vcounter<150 && hcounter>=315 && hcounter< 355) ||(vcounter>= 120 && vcounter<130 && hcounter>=325 && hcounter<355) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=375 && hcounter< 395) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=385 && hcounter<395) || 	(vcounter>= 140 && vcounter<150 && hcounter>=385 && hcounter< 415)
/* number display starts from here*/	
||  (vcounter>= 100 && vcounter<110 && hcounter>=455 && hcounter< 475) ||  	(vcounter>= 110 && vcounter<120 && hcounter>=445 && hcounter<455) || (vcounter>= 100 && vcounter<150 && hcounter>=465 && hcounter< 475)
||		(vcounter>= 140 && vcounter<150 && hcounter>=445 && hcounter< 485) || 	(vcounter>= 260 && vcounter<290 && hcounter>=80 && hcounter<90) || 	(vcounter>= 250 && vcounter<260 && hcounter>=90 && hcounter< 120)
||   (vcounter>= 290 && vcounter< 300 && hcounter>=90 && hcounter< 120) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=150 && hcounter<170) || 	(vcounter>= 260 && vcounter<290 && hcounter>=140 && hcounter< 150)
|| (vcounter>= 260 && vcounter<290 && hcounter>=170 && hcounter< 180) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=150 && hcounter<170) || 	(vcounter>= 250 && vcounter<300 && hcounter>=200 && hcounter< 210)
|| (vcounter>= 250 && vcounter<300 && hcounter>= 240 && hcounter< 250) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=210 && hcounter<220) || 	(vcounter>= 250 && vcounter<260 && hcounter>=230 && hcounter< 240)
|| (vcounter>= 260 && vcounter<280 && hcounter>=220 && hcounter< 230) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=270 && hcounter<310) || 	(vcounter>= 250 && vcounter<300 && hcounter>=280 && hcounter< 290)
|| (vcounter>= 270 && vcounter<280 && hcounter>=280 && hcounter< 310) ||  	(vcounter>= 250 && vcounter<280 && hcounter>=300 && hcounter<310) || 	(vcounter>= 250 && vcounter<260 && hcounter>=330 && hcounter< 350)
|| (vcounter>= 250 && vcounter<300 && hcounter>=340 && hcounter< 350) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=340 && hcounter<370) || 	(vcounter>= 250 && vcounter<260 && hcounter>=390 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=400 && hcounter< 410) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=390 && hcounter<430) || 	(vcounter>= 270 && vcounter<280 && hcounter>=400 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=470 && hcounter< 480 ) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=450 && hcounter<500) || 	(vcounter>= 250 && vcounter<260 && hcounter>=520 && hcounter< 560)
||(vcounter>= 250 && vcounter<300 && hcounter>=530 && hcounter< 540) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=520 && hcounter<560) || 	(vcounter>= 270 && vcounter<280 && hcounter>=530 && hcounter< 560);
		 
	
	end
	
	always@(enable2) begin
	vgadisp7= ~blank &&
	(vcounter>= 140 && vcounter<160 && hcounter>=110 && hcounter< 120) ||  	(vcounter>= 130 && vcounter<170 && hcounter>=120 && hcounter<130) || 	(vcounter>= 120 && vcounter<140 && hcounter>=130 && hcounter< 140)
	|| (vcounter>= 160 && vcounter<180 && hcounter>=130 && hcounter< 140) ||  	(vcounter>= 120 && vcounter<130 && hcounter>=130 && hcounter<170) || 	(vcounter>= 170 && vcounter<180 && hcounter>=130 && hcounter< 170)
   || (vcounter>= 140 && vcounter<180 && hcounter>=160 && hcounter< 170) ||  	(vcounter>= 140 && vcounter<150 && hcounter>=150 && hcounter<170) || 	(vcounter>= 140 && vcounter<180 && hcounter>=200 && hcounter< 210) || (vcounter>= 130 && vcounter< 180 && hcounter>=210 && hcounter< 220) || (vcounter>= 120 && vcounter< 130 
	&& hcounter>=220 && hcounter< 240) || (vcounter>= 130 && vcounter< 180 && hcounter>=240 && hcounter< 250)|| (vcounter>= 140 && vcounter< 180 
	&& hcounter>=250 && hcounter<260)||(vcounter>= 150 && vcounter<160 && hcounter>=220 && hcounter<240) || (vcounter>= 120 && vcounter<180 && hcounter>=290 && hcounter< 300) ||(vcounter>= 120 && vcounter<180 && hcounter>=340 && hcounter<350) || 	(vcounter>= 130 && vcounter<150 && hcounter>=300 && hcounter< 310)
	|| (vcounter>= 130 && vcounter<150 && hcounter>=330 && hcounter< 340) ||  	(vcounter>= 140 && vcounter<160 && hcounter>=310 && hcounter<330) || 	(vcounter>= 120 && vcounter<130 && hcounter>=380 && hcounter< 440) ||
	(vcounter>= 120 && vcounter<180 && hcounter>=380 && hcounter< 400) || (vcounter>= 140 && vcounter<150 && hcounter>=380 && hcounter< 440) || (vcounter>= 170 && vcounter<180 && hcounter>=380 && hcounter< 440)
/* number display starts from here*/	
||  (vcounter>= 260 && vcounter<300 && hcounter>=110 && hcounter< 120) ||  	(vcounter>= 250 && vcounter<310 && hcounter>=120 && hcounter<130) || (vcounter>= 250 && vcounter<310 && hcounter>=150 && hcounter< 160)
||		(vcounter>= 250 && vcounter<260 && hcounter>=120 && hcounter< 160) ||  	(vcounter>= 300 && vcounter<310 && hcounter>=120 && hcounter<160) || 	(vcounter>= 260 && vcounter<300 && hcounter>=160 && hcounter< 170)
||   (vcounter>= 250 && vcounter< 290 && hcounter>=200 && hcounter< 220) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=210 && hcounter<250) || 	(vcounter>= 300 && vcounter<310 && hcounter>=220 && hcounter< 240)
|| (vcounter>= 250 && vcounter<290 && hcounter>=240 && hcounter< 260) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=290 && hcounter<350) || 	(vcounter>= 250 && vcounter<310 && hcounter>=290 && hcounter< 310)
|| (vcounter>= 270 && vcounter<280 && hcounter>= 310 && hcounter< 350) ||  	(vcounter>= 300 && vcounter<310 && hcounter>=310 && hcounter<350) || 	(vcounter>= 250 && vcounter<310 && hcounter>=380 && hcounter< 390)
|| (vcounter>= 250 && vcounter<260 && hcounter>=380 && hcounter< 420) ||  	(vcounter>= 280 && vcounter<290 && hcounter>=390 && hcounter<420) || 	(vcounter>= 270 && vcounter<280 && hcounter>=400 && hcounter< 410)
|| (vcounter>= 260 && vcounter<280 && hcounter>=410 && hcounter< 430) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=400 && hcounter<430) || 	(vcounter>= 300 && vcounter<310 && hcounter>=410 && hcounter< 440);
/*
|| (vcounter>= 250 && vcounter<300 && hcounter>=340 && hcounter< 350) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=340 && hcounter<370) || 	(vcounter>= 250 && vcounter<260 && hcounter>=390 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=400 && hcounter< 410) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=390 && hcounter<430) || 	(vcounter>= 270 && vcounter<280 && hcounter>=400 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=470 && hcounter< 480 ) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=450 && hcounter<500) || 	(vcounter>= 250 && vcounter<260 && hcounter>=520 && hcounter< 560)
||(vcounter>= 250 && vcounter<300 && hcounter>=530 && hcounter< 540) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=520 && hcounter<560) || 	(vcounter>= 270 && vcounter<280 && hcounter>=530 && hcounter< 560);
	*/	 
	
end

always@(enable3) begin
vgadisp8= ~blank &&
	(vcounter>= 100 && vcounter<110 && hcounter>=125 && hcounter< 145) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=135 && hcounter<145) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=195 && hcounter<205) || 	(vcounter>= 120 && vcounter<130 && hcounter>=195 && hcounter< 225)
   || (vcounter>= 140 && vcounter<150 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<110 && hcounter>=245 && hcounter<265) || 	(vcounter>= 100 && vcounter<110 && hcounter>=275 && hcounter< 295) || (vcounter>= 110 && vcounter< 140 && hcounter>=255 && hcounter< 265) || (vcounter>= 110 && vcounter< 140 
	&& hcounter>=275 && hcounter< 285) || (vcounter>= 140 && vcounter< 150 && hcounter>=265 && hcounter< 275)|| (vcounter>= 100 && vcounter< 110 
	&& hcounter>=315 && hcounter<355)||(vcounter>= 100 && vcounter<150 && hcounter>=325 && hcounter<335) || (vcounter>= 140 && vcounter<150 && hcounter>=315 && hcounter< 355) ||(vcounter>= 120 && vcounter<130 && hcounter>=325 && hcounter<355) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=375 && hcounter< 395) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=385 && hcounter<395) || 	(vcounter>= 140 && vcounter<150 && hcounter>=385 && hcounter< 415)
/* number display starts from here*/	
||  (vcounter>= 100 && vcounter<110 && hcounter>=445 && hcounter< 485) ||  	(vcounter>= 110 && vcounter<120 && hcounter>=475 && hcounter<485) || (vcounter>= 120 && vcounter<130 && hcounter>=445 && hcounter< 485)
||		(vcounter>= 130 && vcounter<140 && hcounter>=445 && hcounter< 455) || (vcounter>= 140 && vcounter<150 && hcounter>=445 && hcounter< 485) || 	(vcounter>= 260 && vcounter<290 && hcounter>=80 && hcounter<90) || 	(vcounter>= 250 && vcounter<260 && hcounter>=90 && hcounter< 120)
||   (vcounter>= 290 && vcounter< 300 && hcounter>=90 && hcounter< 120) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=150 && hcounter<170) || 	(vcounter>= 260 && vcounter<290 && hcounter>=140 && hcounter< 150)
|| (vcounter>= 260 && vcounter<290 && hcounter>=170 && hcounter< 180) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=150 && hcounter<170) || 	(vcounter>= 250 && vcounter<300 && hcounter>=200 && hcounter< 210)
|| (vcounter>= 250 && vcounter<300 && hcounter>= 240 && hcounter< 250) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=210 && hcounter<220) || 	(vcounter>= 250 && vcounter<260 && hcounter>=230 && hcounter< 240)
|| (vcounter>= 260 && vcounter<280 && hcounter>=220 && hcounter< 230) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=270 && hcounter<310) || 	(vcounter>= 250 && vcounter<300 && hcounter>=280 && hcounter< 290)
|| (vcounter>= 270 && vcounter<280 && hcounter>=280 && hcounter< 310) ||  	(vcounter>= 250 && vcounter<280 && hcounter>=300 && hcounter<310) || 	(vcounter>= 250 && vcounter<260 && hcounter>=330 && hcounter< 350)
|| (vcounter>= 250 && vcounter<300 && hcounter>=340 && hcounter< 350) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=340 && hcounter<370) || 	(vcounter>= 250 && vcounter<260 && hcounter>=390 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=400 && hcounter< 410) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=390 && hcounter<430) || 	(vcounter>= 270 && vcounter<280 && hcounter>=400 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=470 && hcounter< 480 ) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=450 && hcounter<500) || 	(vcounter>= 250 && vcounter<260 && hcounter>=520 && hcounter< 560)
||(vcounter>= 250 && vcounter<300 && hcounter>=530 && hcounter< 540) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=520 && hcounter<560) || 	(vcounter>= 270 && vcounter<280 && hcounter>=530 && hcounter< 560);
		 

end

always@(enable4) begin
vgadisp9= ~blank &&
	(vcounter>= 100 && vcounter<110 && hcounter>=125 && hcounter< 145) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=135 && hcounter<145) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=195 && hcounter<205) || 	(vcounter>= 120 && vcounter<130 && hcounter>=195 && hcounter< 225)
   || (vcounter>= 140 && vcounter<150 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<110 && hcounter>=245 && hcounter<265) || 	(vcounter>= 100 && vcounter<110 && hcounter>=275 && hcounter< 295) || (vcounter>= 110 && vcounter< 140 && hcounter>=255 && hcounter< 265) || (vcounter>= 110 && vcounter< 140 
	&& hcounter>=275 && hcounter< 285) || (vcounter>= 140 && vcounter< 150 && hcounter>=265 && hcounter< 275)|| (vcounter>= 100 && vcounter< 110 
	&& hcounter>=315 && hcounter<355)||(vcounter>= 100 && vcounter<150 && hcounter>=325 && hcounter<335) || (vcounter>= 140 && vcounter<150 && hcounter>=315 && hcounter< 355) ||(vcounter>= 120 && vcounter<130 && hcounter>=325 && hcounter<355) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=375 && hcounter< 395) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=385 && hcounter<395) || 	(vcounter>= 140 && vcounter<150 && hcounter>=385 && hcounter< 415)
/* number display starts from here*/	
||  (vcounter>= 100 && vcounter<110 && hcounter>=445 && hcounter< 485) ||  	(vcounter>= 110 && vcounter<120 && hcounter>=475 && hcounter<485) || (vcounter>= 120 && vcounter<130 && hcounter>=445 && hcounter< 485)
||		(vcounter>= 130 && vcounter<140 && hcounter>=475 && hcounter< 485) || 	(vcounter>= 140 && vcounter<150 && hcounter>=445 && hcounter< 485) ||(vcounter>= 260 && vcounter<290 && hcounter>=80 && hcounter<90) || 	(vcounter>= 250 && vcounter<260 && hcounter>=90 && hcounter< 120)
||   (vcounter>= 290 && vcounter< 300 && hcounter>=90 && hcounter< 120) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=150 && hcounter<170) || 	(vcounter>= 260 && vcounter<290 && hcounter>=140 && hcounter< 150)
|| (vcounter>= 260 && vcounter<290 && hcounter>=170 && hcounter< 180) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=150 && hcounter<170) || 	(vcounter>= 250 && vcounter<300 && hcounter>=200 && hcounter< 210)
|| (vcounter>= 250 && vcounter<300 && hcounter>= 240 && hcounter< 250) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=210 && hcounter<220) || 	(vcounter>= 250 && vcounter<260 && hcounter>=230 && hcounter< 240)
|| (vcounter>= 260 && vcounter<280 && hcounter>=220 && hcounter< 230) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=270 && hcounter<310) || 	(vcounter>= 250 && vcounter<300 && hcounter>=280 && hcounter< 290)
|| (vcounter>= 270 && vcounter<280 && hcounter>=280 && hcounter< 310) ||  	(vcounter>= 250 && vcounter<280 && hcounter>=300 && hcounter<310) || 	(vcounter>= 250 && vcounter<260 && hcounter>=330 && hcounter< 350)
|| (vcounter>= 250 && vcounter<300 && hcounter>=340 && hcounter< 350) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=340 && hcounter<370) || 	(vcounter>= 250 && vcounter<260 && hcounter>=390 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=400 && hcounter< 410) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=390 && hcounter<430) || 	(vcounter>= 270 && vcounter<280 && hcounter>=400 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=470 && hcounter< 480 ) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=450 && hcounter<500) || 	(vcounter>= 250 && vcounter<260 && hcounter>=520 && hcounter< 560)
||(vcounter>= 250 && vcounter<300 && hcounter>=530 && hcounter< 540) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=520 && hcounter<560) || 	(vcounter>= 270 && vcounter<280 && hcounter>=530 && hcounter< 560);
		 
end	
	
	
always@(enable5)	begin
	vgadisp10= ~blank &&
	(vcounter>= 100 && vcounter<110 && hcounter>=125 && hcounter< 145) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=135 && hcounter<145) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=195 && hcounter<205) || 	(vcounter>= 120 && vcounter<130 && hcounter>=195 && hcounter< 225)
   || (vcounter>= 140 && vcounter<150 && hcounter>=185 && hcounter< 225) ||  	(vcounter>= 100 && vcounter<110 && hcounter>=245 && hcounter<265) || 	(vcounter>= 100 && vcounter<110 && hcounter>=275 && hcounter< 295) || (vcounter>= 110 && vcounter< 140 && hcounter>=255 && hcounter< 265) || (vcounter>= 110 && vcounter< 140 
	&& hcounter>=275 && hcounter< 285) || (vcounter>= 140 && vcounter< 150 && hcounter>=265 && hcounter< 275)|| (vcounter>= 100 && vcounter< 110 
	&& hcounter>=315 && hcounter<355)||(vcounter>= 100 && vcounter<150 && hcounter>=325 && hcounter<335) || (vcounter>= 140 && vcounter<150 && hcounter>=315 && hcounter< 355) ||(vcounter>= 120 && vcounter<130 && hcounter>=325 && hcounter<355) || 	(vcounter>= 140 && vcounter<150 && hcounter>=135 && hcounter< 165)
	|| (vcounter>= 100 && vcounter<110 && hcounter>=375 && hcounter< 395) ||  	(vcounter>= 100 && vcounter<150 && hcounter>=385 && hcounter<395) || 	(vcounter>= 140 && vcounter<150 && hcounter>=385 && hcounter< 415)
/* number display starts from here*/	
||  (vcounter>= 100 && vcounter<130 && hcounter>=445 && hcounter< 455) ||  	(vcounter>= 120 && vcounter<130 && hcounter>=445 && hcounter<485) || (vcounter>= 100 && vcounter<150 && hcounter>=475 && hcounter< 485)
||	(vcounter>= 260 && vcounter<290 && hcounter>=80 && hcounter<90) || 	(vcounter>= 250 && vcounter<260 && hcounter>=90 && hcounter< 120)
||   (vcounter>= 290 && vcounter< 300 && hcounter>=90 && hcounter< 120) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=150 && hcounter<170) || 	(vcounter>= 260 && vcounter<290 && hcounter>=140 && hcounter< 150)
|| (vcounter>= 260 && vcounter<290 && hcounter>=170 && hcounter< 180) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=150 && hcounter<170) || 	(vcounter>= 250 && vcounter<300 && hcounter>=200 && hcounter< 210)
|| (vcounter>= 250 && vcounter<300 && hcounter>= 240 && hcounter< 250) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=210 && hcounter<220) || 	(vcounter>= 250 && vcounter<260 && hcounter>=230 && hcounter< 240)
|| (vcounter>= 260 && vcounter<280 && hcounter>=220 && hcounter< 230) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=270 && hcounter<310) || 	(vcounter>= 250 && vcounter<300 && hcounter>=280 && hcounter< 290)
|| (vcounter>= 270 && vcounter<280 && hcounter>=280 && hcounter< 310) ||  	(vcounter>= 250 && vcounter<280 && hcounter>=300 && hcounter<310) || 	(vcounter>= 250 && vcounter<260 && hcounter>=330 && hcounter< 350)
|| (vcounter>= 250 && vcounter<300 && hcounter>=340 && hcounter< 350) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=340 && hcounter<370) || 	(vcounter>= 250 && vcounter<260 && hcounter>=390 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=400 && hcounter< 410) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=390 && hcounter<430) || 	(vcounter>= 270 && vcounter<280 && hcounter>=400 && hcounter< 430)
|| (vcounter>= 250 && vcounter<300 && hcounter>=470 && hcounter< 480 ) ||  	(vcounter>= 250 && vcounter<260 && hcounter>=450 && hcounter<500) || 	(vcounter>= 250 && vcounter<260 && hcounter>=520 && hcounter< 560)
||(vcounter>= 250 && vcounter<300 && hcounter>=530 && hcounter< 540) ||  	(vcounter>= 290 && vcounter<300 && hcounter>=520 && hcounter<560) || 	(vcounter>= 270 && vcounter<280 && hcounter>=530 && hcounter< 560);
		 
	end
	
	endmodule
	